package org.example.factory_method;

import java.math.BigDecimal;

/**
 * @author Zhang Yu
 * @description: TODO
 * @date 2024/5/14 10:13
 */
public class INumberFactoryImpl2 implements INumberFactory {

    @Override
    public Number parse(String s) {
        return new BigDecimal(s);
    }
}
